home *** CD-ROM | disk | FTP | other *** search
/ Amiga Plus Special 25 / AMIGAplus Sonderheft 25 (2000)(Falke)(DE)(Track 1 of 4)[!].iso / Tools / SFX-Player / Mod / 303tracker / Install_303trackerV0.12 < prev    next >
Text File  |  2000-05-08  |  6KB  |  204 lines

  1. ; ------------------------------------------------------
  2. ; $VER: 303tracker InstallScript English 1.0 (15.10.98)
  3. ; Installer for 303tracker Beta Version 0.12
  4. ; Written by Jeroen Schellekens
  5.  
  6. ; *********************************************************
  7. ; *             Init stuff (setup screens etc)            *
  8. ; *********************************************************
  9.  
  10. ; Set the initial graphics first
  11. GFX_LOAD Install_Files/GfxE.ilbm 80 40
  12. BACK_LOAD Install_Files/BackgroundBeta.ilbm
  13. BACK_SHOW
  14.  
  15. ; Load the first screenshot (the advertisement)
  16. LOAD_PIC Install_Files/Advert.ilbm
  17. SHOW_PIC 12 120 320 128
  18.  
  19. ; Reset the Action Window
  20. ACT_WINDOW_RESET
  21.  
  22. ; Load a background music
  23. LOAD_MODULE Install_Files/Bg.mod
  24. PLAY_MODULE %1111
  25.  
  26. ; Load a nice font
  27. SET_FONT Install_Files/Topal.fnt
  28.  
  29. ; Let's start the show (appear screen) but wait a moment
  30. APPEAR_ALL 20
  31.  
  32. ; Show the rotating logo
  33. START_LOGO 12 52
  34. WAIT 20
  35.  
  36. ; *********************************************************
  37. ; *                   The Main program                    *
  38. ; *********************************************************
  39.  
  40. ; Update Logfile
  41. MESSAGE "Start Install 303tracker"
  42. MESSAGE "Beta Version 0.12"
  43.  
  44. ; Welcome user, tell which version of 303tracker will be installed
  45. REQUEST_NOTIFY "Welcome to the 303tracker installer." "This program will install:" "" "303tracker Beta Version 0.12" "Continue"
  46.  
  47. ; Tell the user which specs it needs
  48. REQUEST_NOTIFY "303tracker needs 2 megabytes of" "harddrive-space for installation." "You can now select where to install" "303tracker." "Select Path"
  49.  
  50. ; Ask the user where to install 303tracker
  51. REQUEST_DIR "Ram:" "Select path to install 303tracker." "A new directory WILL be created." "Accept" "Abort" "Parent" "Volumes"
  52.  
  53. IF RESULT = -1
  54.    CALL "ABORT"
  55. ENDIF
  56.  
  57. ; Set the destination-path to the previous specified one
  58. SET_DESTPATH RESULT
  59.  
  60. ; Check if there's enough free space in current dest-path (in kilobytes)
  61. CHECK_FREE RESULT 4096
  62.  
  63. IF RESULT = -1
  64.    REQUEST_NOTIFY "Installation has been cancelled!" "To install 303tracker, you need at" "least 4 megabytes of free space on" "your harddrive. Be sure next time!" "Abort Installation"
  65.    CALL "ABORT"
  66. ENDIF
  67.  
  68. ; Make a new directory in the destination-path with .info file (1)
  69. MAKE_DIR "303trackerV0.12" 1
  70. ; Add the just created dir to the Destpath
  71. SET_DESTPATH RESULT
  72.  
  73. ; Write down the destination-path in the log-file
  74. MESSAGE "Current destination-path:"
  75. MESSAGE RESULT
  76.  
  77. ; Reset the sourcepath to the program-startup-path
  78. RESET_SOURCEPATH
  79.  
  80. ; *********************************************************
  81. ; *          Allrighdie, let's install the shit!          *
  82. ; *********************************************************
  83.  
  84. ; Create a couple of dirs in the destpath
  85. MAKE_DIR "Effects" 0
  86. MAKE_DIR "Engines" 0
  87. MAKE_DIR "Help" 0
  88. MAKE_DIR "Language" 0
  89. MAKE_DIR "Plugins" 0
  90. MAKE_DIR "Rexx" 0
  91. MAKE_DIR "Samples" 0
  92. MAKE_DIR "Songs" 0
  93. MAKE_DIR "System" 0
  94. MAKE_DIR "Waveforms" 0
  95.  
  96. PROGRESS 3
  97.  
  98. ; Install the native language, English in this case
  99. MAKE_DIR "Language/English" 0
  100. MAKE_DIR "Help/English" 0
  101. COPY_ALL Program/Language/English/ Language/English
  102. COPY_ALL Program/Help/English/ Help/English
  103.  
  104. PROGRESS 8
  105.  
  106. ; Ask to copy the included samples
  107. REQUEST_CHOICE "Do you want to install the included samples?" "(These cost you about 200 kb of your harddisk)" "Yes" "No" "Abort" ""
  108. IF RESULT = 1
  109.    COPY_ALL Program/Samples/ Samples
  110. ENDIF
  111. IF RESULT = 3
  112.    CALL "ABORT"
  113. ENDIF
  114.  
  115. PROGRESS 14
  116.  
  117. ; Ask to copy the included songs
  118. REQUEST_CHOICE "Do you want to install the included songs?" "(These cost you about 50 kb of your harddisk)" "Yes" "No" "Abort" ""
  119. IF RESULT = 1
  120.    COPY_ALL Program/Songs/ Songs
  121. ENDIF
  122. IF RESULT = 3
  123.    CALL "ABORT"
  124. ENDIF
  125.  
  126. PROGRESS 20
  127.  
  128. ; Copy all the other stuff (system, plug-ins, waveforms, engines, effects)
  129.  
  130. ; Copy Help-Images
  131. MAKE_DIR "Help/Images" 0
  132. COPY_ALL Program/Help/Images/ Help/Images
  133. PROGRESS 25
  134.  
  135. ; Copy Effects stuff (lists, tables)
  136. COPY_ALL Program/Effects/ Effects
  137. PROGRESS 30
  138.  
  139. ; Copy Engines (executables and other stuff)
  140. COPY_ALL Program/Engines/ Engines
  141. PROGRESS 40
  142.  
  143. ; Copy Plugins (graphix, configs & coords for Drum, Bassline & WackyFilter)
  144. COPY_ALL Program/Plugins/ Plugins
  145. PROGRESS 50
  146.  
  147. ; Copy ARexx scripts
  148. COPY_ALL Program/Rexx/ Rexx
  149. PROGRESS 60
  150.  
  151. LOAD_PIC Install_Files/Editor.ilbm
  152. SHOW_PIC 12 120 320 128
  153.  
  154. ; Copy System Files
  155. COPY_ALL Program/System/ System
  156. PROGRESS 70
  157.  
  158. ; Copy Waveforms for FREE Vco
  159. COPY_ALL Program/Waveforms/ Waveforms
  160. PROGRESS 80
  161.  
  162. ; Copy Executable, Config, Readme.txt, Manual.Guide in root
  163. COPY_FILE Program/303tracker.config 303tracker.config
  164. COPY_FILE Program/303tracker.guide 303tracker.guide
  165. COPY_FILE Program/303tracker.guide.info 303tracker.guide.info
  166. COPY_FILE Program/303tracker 303tracker
  167. COPY_FILE Program/303tracker.info 303tracker.info
  168. COPY_FILE Program/303tracker.readme 303tracker.readme
  169. COPY_FILE Program/303tracker.readme.info 303tracker.readme.info
  170. COPY_FILE Program/Rexx.info Rexx.info
  171. PROGRESS 90
  172.  
  173. ; Hey, we're finished!!!!
  174. CALL "COMPLETE"
  175.  
  176. ; *********************************************************
  177. ; *                      Procedures                       *
  178. ; *********************************************************
  179.  
  180. ; The following procedure executes the Install-Abort
  181.  
  182. PROC_BEG "ABORT"
  183.    MESSAGE "Installation Aborted!"
  184.    REQUEST_NOTIFY "Installation aborted!" "" "Just restart this installation-program" "when you think it's possible again." "Bye"
  185.    STOP_MODULE
  186.    HIDE_PIC 12 120 320 128
  187.    SCRIPT_END
  188. PROC_END
  189.  
  190. ; The following procedure executes a 100% complete installation-end
  191.  
  192. PROC_BEG "COMPLETE"
  193.    MESSAGE "Installation Completed 100% Ok"
  194.    PROGRESS 100
  195.    REQUEST_NOTIFY "Installation complete!" "" "Everything installed 100% successfull." "You can start 303tracker from Workbench." "Great!"
  196.    REQUEST_NOTIFY "You can find the log-file in your" "303tracker directory. This file contains" "all information of actions that were" "made to install 303tracker." "Exit Installer"
  197.    STOP_MODULE
  198.    LOAD_SAMPLE Install_Files/Complete.raw
  199.    PLAY_SAMPLE 25780 226 63 2
  200.    WAIT 50
  201.    HIDE_PIC 12 120 320 128
  202.    SCRIPT_END
  203. PROC_END
  204.